﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.Domain.Model.User
{
    /// <summary>
    /// 角色用户关系表
    /// </summary>
    [Table("RoleUsers")]
    public class RoleUsers
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        [Required]
        [Display(Name = "角色编号")]
        public int RoleId { get; set; }
        /// <summary>
        ///用户编号
        /// </summary>
        [Required]
        [Display(Name = "用户编号")]
        public int UserId { get; set; }

    }
}
